package edu.xpu.compute.recommend.dto;

import java.util.List;

import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

import edu.xpu.compute.recommend.entity.meta.SysUserMajor;

@Mapper(componentModel="spring")
public interface SysUserMajorDtoMapper {

	@Mappings({
		@Mapping(source="faculty.id", target="facultyGuid"),
		@Mapping(source="faculty.name", target="facultyName")
	})
	public SysUserMajorDto from(SysUserMajor major);
	public List<SysUserMajorDto> from(List<SysUserMajor> majors);
	
	public SysUserMajor to(SysUserMajorDto majorDto);
	public List<SysUserMajor> to(List<SysUserMajorDto> majorDtos);
}
